﻿jQuery(document).ready(function ($) {
            var options = {
                $AutoPlay: true,                    
                $AutoPlaySteps: 1,      
                $AutoPlayInterval: 0,     
                $PauseOnHover: 1,     
                $ArrowKeyNavigation: true,   
                $SlideEasing: $JssorEasing$.$EaseLinear,
                $SlideDuration: 3000,  
                $MinDragOffsetToSlide: 20,    
                $SlideWidth: 140,    
                $SlideSpacing: 0, 					    
                $DisplayPieces: 7,                       
                $ParkingPosition: 0,  
                $UISearchMode: 1, 
                $PlayOrientation: 1, 
                $DragOrientation: 1  
            };

            var jssor_slider1 = new $JssorSlider$("slider1_container", options);

            function ScaleSlider() {
                var bodyWidth = document.body.clientWidth;
                if (bodyWidth)
                    jssor_slider1.$SetScaleWidth(Math.min(bodyWidth, 1200));
                else
                    window.setTimeout(ScaleSlider, 30);
            }

            ScaleSlider();

            if (!navigator.userAgent.match(/(iPhone|iPod|iPad|BlackBerry|IEMobile)/)) {
                $(window).bind('resize', ScaleSlider);
            }

        });